<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h2{
            text-align: center;
        }
    </style>
</head>
<body>
    <h2></h2>
    <button>停止</button>
    <a href="05.html">05</a>
</body>
<script src="../lib/font/date.js"></script>
<script>
    let h2 = document.querySelector('h2');
    let btn = document.querySelector('button');
    function setTime(){
        h2.innerHTML = getNow();
    }
    let t1 = setInterval(setTime,1000);
    btn.addEventListener('click',e =>{
        clearInterval(t1);
    })


</script>
</html>